package com.warom.sdg.dto;

/**
 * 报警记录数据传输对象
 * 用于前端和后端数据交换
 */
public class AlarmRecordDto {
    private long id;
    private String alarmType;     // 报警类型：GRAIN(粮情)/GAS(气体)
    private String paramType;     // 参数类型：temperature/humidity/oxygen/co2/ph3
    private long deviceId;        // 设备ID
    private String deviceName;    // 设备名称
    private String location;      // 位置信息
    private double value;         // 报警值
    private String unit;          // 单位
    private double thresholdMin;  // 阈值下限
    private double thresholdMax;  // 阈值上限
    private String level;         // 报警级别：HIGH/MEDIUM/LOW
    private String status;        // 报警状态：ACTIVE/HANDLED/IGNORED
    private String description;   // 报警描述
    private long createTime;      // 报警产生时间
    private String createTimeString; // 格式化报警时间
    private long handleTime;      // 处理时间
    private String handleTimeString; // 格式化处理时间
    private String handleUser;    // 处理用户
    private String handleDescription; // 处理描述

    // 默认构造函数
    public AlarmRecordDto() {
    }

    // Getters and Setters
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getAlarmType() {
        return alarmType;
    }

    public void setAlarmType(String alarmType) {
        this.alarmType = alarmType;
    }

    public String getParamType() {
        return paramType;
    }

    public void setParamType(String paramType) {
        this.paramType = paramType;
    }

    public long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public double getValue() {
        return value;
    }

    public void setValue(double value) {
        this.value = value;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public double getThresholdMin() {
        return thresholdMin;
    }

    public void setThresholdMin(double thresholdMin) {
        this.thresholdMin = thresholdMin;
    }

    public double getThresholdMax() {
        return thresholdMax;
    }

    public void setThresholdMax(double thresholdMax) {
        this.thresholdMax = thresholdMax;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getCreateTimeString() {
        return createTimeString;
    }

    public void setCreateTimeString(String createTimeString) {
        this.createTimeString = createTimeString;
    }

    public long getHandleTime() {
        return handleTime;
    }

    public void setHandleTime(long handleTime) {
        this.handleTime = handleTime;
    }

    public String getHandleTimeString() {
        return handleTimeString;
    }

    public void setHandleTimeString(String handleTimeString) {
        this.handleTimeString = handleTimeString;
    }

    public String getHandleUser() {
        return handleUser;
    }

    public void setHandleUser(String handleUser) {
        this.handleUser = handleUser;
    }

    public String getHandleDescription() {
        return handleDescription;
    }

    public void setHandleDescription(String handleDescription) {
        this.handleDescription = handleDescription;
    }
} 